<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box{
      width:200px;
      height:200px;
      background: red;
    }
  </style>
</head>
<body>
  <div id="app">
    <input id="txt" type="text" v-model="inputTxt">
    {{ inputTxt }}
    <hr>
    <input type="checkbox" v-model="isShow">
    {{isShow}}
    <div class="box" v-show="isShow"></div>
    <hr>
    篮球：
    <input type="checkbox" value="篮球" v-model="arr">
    足球
    <input type="checkbox" value="足球" v-model="arr">
    网球：
    <input type="checkbox" value="网球" v-model="arr">
    {{arr}}
  </div>
  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      el:"#app",
      data:{
        inputTxt:'表单值',
        isShow:true,
        arr:[]
      }
    })
  </script>
</body>
</html>